package com.tal.pad.orc.base.net;

/**
 * 网络配置
 */
public class NetWorkConfig {

//    public static Logger logger = LoggerFactory.getLogger("NetWorkConfig");
    /**
     * 默认网络配置，远程可控
     */
    public static AppNetWorkConfigRemoteInfo configInfo = new AppNetWorkConfigRemoteInfo();



    /**
     * 获取配置中心网络配置信息
     *
     * @return
     */
    public static AppNetWorkConfigRemoteInfo getNetWorkConfigRemoteInfo() {
//        return  null;
//        NetWorkConfigRemoteInfo netWorkConfigRemoteInfo = PzcenterBll.getInstance().getObjectConfigure("netWorkConfigRemoteInfo", NetWorkConfigRemoteInfo.class);
//        if (netWorkConfigRemoteInfo!=null){
//            configInfo.connectTime=netWorkConfigRemoteInfo.getConnectTime();
//            configInfo.enableBackUpIp=netWorkConfigRemoteInfo.isEnableBackUpIp();
//            configInfo.readTimeout=netWorkConfigRemoteInfo.getReadTimeout();
//            configInfo.writeTimeout=netWorkConfigRemoteInfo.getWriteTimeout();
//        }
        return configInfo;
    }
}
